import request from "@/router/axios";
import { baseUrl } from "@/config/env";

//添加违纪处分
export function addPunishment(data) {
  return request({
    url: baseUrl + "/pc/punishment",
    method: "post",
    data
  });
}

//查询违纪处分
export function getPunishment(data) {
  return request({
    url: baseUrl + "/pc/punishment",
    method: "get",
    params: data
  });
}

//删除违纪处分
export function deletePunishment(data) {
  return request({
    url: baseUrl + "/pc/punishment",
    method: "delete",
    data
  });
}

//更新违纪处分
export function updatePunishment(data) {
  return request({
    url: baseUrl + "/pc/punishment",
    method: "put",
    data
  });
}

//导入违纪处分
export function importPunishment(data) {
  return request({
    url: baseUrl + "/pc/punishment",
    method: "post",
    data
  });
}
